const fs = require('fs');
const util = require('util');

const writeFile = util.promisify(fs.writeFile);

async function main() {
    try {
        await writeFile('example1.txt', 'This is an example file');
        await writeFile('example2.txt', 'This is an example file');
        await writeFile('example3.txt', 'This is an example file');
        console.log('Files written successfully');
    } catch (error) {
        console.error('Error writing file:', error);
    }
}

main();